import service from '@/plugins/utils/request'
let pre = 'api/Product/'
export default{
	//获取商品列表
	//is_home 是否只查询首页的商品
	//keyword 查询关键字
	//type
	//pageIndex	分页页码
	//pageSize	分页大小
	ListProduct(data) {
		return service({
			url: `${pre}ListProduct`,
			method: 'post',
			data
		})
	},
	
	//获取商品详情
	//prdId 
	GetProduct(data) {
		return service({
			url: `${pre}GetProduct`,
			method: 'post',
			data
		})
	},

	ListCategory(data) {
		return service({
			url: `${pre}ListCategory`,
			method: 'post',
			data
		})
	},
	
	GetShop(data) {
		return service({
			url: `api/Shop/GetShop`,
			method: 'post',
			data
		})
	},

	
	ListComments(data) {
		return service({
			url: `${pre}ListComments`,
			method: 'post',
			data
		})
	},

	SetFlashRemind(data) {
		return service({
			url: `${pre}SetFlashRemind`,
			method: 'post',
			data
		})
	},

	GetFlashNotify(data) {
		return service({
			url: `${pre}GetFlashNotify`,
			method: 'post',
			data
		})
	},

	ListLayout(data) {
		return service({
			url: `api/Shop/ListLayout`,
			method: 'post',
			data
		})
	},

	SetShopRemind(data) {
		return service({
			url: `api/Shop/SetShopRemind`,
			method: 'post',
			data
		})
	},
	
	
} 